import request from '@/utils/request'

export function loginByUsername(login_name, passwd) {
  const data = {
    login_name,
    passwd
  }
  return request({
    url: '/api/common/login',
    method: 'post',
    data
  })
}

export function logout() {
  return Promise.resolve()
}

export function getUserInfo(data) {
  return request({
    url: '/api/common/userInfo',
    method: 'post',
    data
  })
}

